package net.begincode.blog.dao.biz;

import net.begincode.blog.bean.param.UserQueryParam;
import net.begincode.blog.dao.UserMapper;
import net.begincode.blog.entity.User;
import org.apache.ibatis.annotations.Param;
import org.junit.runners.Parameterized;

import java.util.List;

public interface UserBizMapper extends UserMapper {
    User selectByEmail(@Param("email") String email);

    List<User> selectByParam(@Param("queryParam") UserQueryParam queryParam
            , @Param("offSet") int offSet, @Param("limit") int limit);

    int countParam(@Param("queryParam") UserQueryParam queryParam);

    int updateSelectiveByUserId(User user);

    List<User> selectUserByIds(@Param("userIds") List<Long> userIds);
}
